﻿using Dapper.Extensions;
using Microsoft.AspNetCore.Mvc;

namespace orm.dapper.api.Controllers
{
    /// <summary>
    /// 高级操作
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class AdvanceController : ControllerBase
    {
        /// <summary>
        /// 雪花 ID
        /// </summary>
        [HttpGet]
        public IActionResult SnowflakeId()
        { 
            return Ok(SnowflakeUtils.GenerateId());
        }
    }
}
